package com.crazyteam.genid.util;

import org.springframework.beans.factory.InitializingBean;

import java.util.List;

/**
 * @Desc 
 * @Author  guoyang
 * @CreateTime  2016-3-3 上午09:58:55
 */
public class GenIdParams implements InitializingBean {

    private List<String> initKeys;

    public List<String> getInitKeys(){
        return initKeys;
    }

    public void setInitKeys(List<String> initKeys){
        this.initKeys = initKeys;
    }

    public void afterPropertiesSet() throws Exception{
        GenPrimaryKeyFactory.init(initKeys);
    }
}

